package javango.contrib.hibernate;

import java.util.Map;

import javango.forms.AbstractForm;
import javango.forms.fields.FieldFactory;

public abstract class ValidatedForm extends AbstractForm {
	
	
	public ValidatedForm(FieldFactory fieldFactory) {
		super(fieldFactory);
	}

	@Override
	public boolean isValid() {
		if (!super.isValid()) return false;
		
		// check the validators defined in the form
		return HibernateFormHelper.isValid(this);
	}

	
}
